package ${packageName}.model.dto;

import ${packageName}.model.entity.${classInfo.className};
<#if swagger>
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
</#if>
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import java.math.BigDecimal;

/**
 * ${classInfo.classComment}查询对象
 *
 * @author ${authorName}
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
<#if swagger>
@ApiModel(value = "${classInfo.className}Dto", description = "${classInfo.classComment}查询对象")
</#if>
public class ${classInfo.className}Dto extends ${classInfo.className} {

    private static final long serialVersionUID = ${classInfo.serialVersionUID}L;

<#if classInfo.fieldList?exists && classInfo.fieldList?size gt 0>
<#list classInfo.fieldList as fieldItem >
    <#if fieldItem.isNotNull && fieldItem.fieldName != "createTime" && fieldItem.fieldName != "createBy" && fieldItem.fieldName != "isDeleted" && fieldItem_index != 0>
    /**
     * ${fieldItem.fieldComment}
     */
    <#if fieldItem.fieldName == "parentId" && fieldItem.fieldClass == "Long">
    @JsonSerialize(using = ToStringSerializer.class)
    </#if>
    <#if swagger>
    <#if fieldItem.fieldClass == "Long">
    @ApiModelProperty(value = "${fieldItem.fieldComment}", dataType = "java.lang.String")
    <#else>
    @ApiModelProperty(value = "${fieldItem.fieldComment}")
    </#if>
    </#if>
    private ${fieldItem.fieldClass} ${fieldItem.fieldName};
    </#if>
</#list>
</#if>

}
